﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace ZR.Model.mes.pro
{
    /// <summary>
    /// 生产报工
    ///</summary>
    [SugarTable("pro_feedback")]
    public class ProFeedback
    {
        /// <summary>
        /// 主键 
        ///</summary>
         [SugarColumn(ColumnName="record_id" ,IsPrimaryKey = true   )]
         public int RecordId { get; set; }
        /// <summary>
        /// 报工类型（统一报工，自行报工） 
        ///</summary>
         [SugarColumn(ColumnName="feedback_type"    )]
         public string FeedbackType { get; set; }
        /// <summary>
        /// 报工单编号 
        ///</summary>
         [SugarColumn(ColumnName="feedback_code"    )]
         public string FeedbackCode { get; set; }
        /// <summary>
        /// 工单id 
        ///</summary>
         [SugarColumn(ColumnName="workorder_id"    )]
         public int? WorkorderId { get; set; }
        /// <summary>
        /// 工单code 
        ///</summary>
         [SugarColumn(ColumnName="workorder_code"    )]
         public string WorkorderCode { get; set; }
        /// <summary>
        /// 工单name 
        ///</summary>
         [SugarColumn(ColumnName="workorder_name"    )]
         public string WorkorderName { get; set; }
        /// <summary>
        /// 工序id 
        ///</summary>
         [SugarColumn(ColumnName="process_id"    )]
         public int? ProcessId { get; set; }
        /// <summary>
        /// 工序code 
        ///</summary>
         [SugarColumn(ColumnName="process_code"    )]
         public string ProcessCode { get; set; }
        /// <summary>
        /// 工序name 
        ///</summary>
         [SugarColumn(ColumnName="process_name"    )]
         public string ProcessName { get; set; }
        /// <summary>
        /// 工作站id 
        ///</summary>
         [SugarColumn(ColumnName="workstation_id"    )]
         public int? WorkstationId { get; set; }
        /// <summary>
        /// 工作站code 
        ///</summary>
         [SugarColumn(ColumnName="workstation_code"    )]
         public string WorkstationCode { get; set; }
        /// <summary>
        /// 工作站name 
        ///</summary>
         [SugarColumn(ColumnName="workstation_name"    )]
         public string WorkstationName { get; set; }
        /// <summary>
        /// 生产任务ID 
        ///</summary>
         [SugarColumn(ColumnName="task_id"    )]
         public string TaskId { get; set; }
        /// <summary>
        /// 生产任务code 
        ///</summary>
         [SugarColumn(ColumnName="task_code"    )]
         public string TaskCode { get; set; }
        /// <summary>
        /// 产品物料ID 
        ///</summary>
         [SugarColumn(ColumnName="item_id"    )]
         public string ItemId { get; set; }
        /// <summary>
        /// 产品物料code 
        ///</summary>
         [SugarColumn(ColumnName="item_code"    )]
         public string ItemCode { get; set; }
        /// <summary>
        /// 产品物料name 
        ///</summary>
         [SugarColumn(ColumnName="item_name"    )]
         public string ItemName { get; set; }
        /// <summary>
        /// 单位 
        ///</summary>
         [SugarColumn(ColumnName="unit"    )]
         public string Unit { get; set; }
        /// <summary>
        /// 排产数量 
        ///</summary>
         [SugarColumn(ColumnName="quantity"    )]
         public string Quantity { get; set; }
        /// <summary>
        /// 本次报工数量 
        ///</summary>
         [SugarColumn(ColumnName="quantity_feedback"    )]
         public string QuantityFeedback { get; set; }
        /// <summary>
        /// 合格数量 
        ///</summary>
         [SugarColumn(ColumnName="quantity_qualified"    )]
         public string QuantityQualified { get; set; }
        /// <summary>
        /// 不合格数量 
        ///</summary>
         [SugarColumn(ColumnName="quantity_unquanlified"    )]
         public string QuantityUnquanlified { get; set; }
        /// <summary>
        /// 报工人姓名 
        ///</summary>
         [SugarColumn(ColumnName="user_name"    )]
         public string UserName { get; set; }
        /// <summary>
        /// 昵称 
        ///</summary>
         [SugarColumn(ColumnName="nick_name"    )]
         public string NickName { get; set; }
        /// <summary>
        /// 报工途径 
        ///</summary>
         [SugarColumn(ColumnName="feedback_channel"    )]
         public string FeedbackChannel { get; set; }
        /// <summary>
        /// 报工时间 
        ///</summary>
         [SugarColumn(ColumnName="feedback_time"    )]
         public string FeedbackTime { get; set; }
        /// <summary>
        /// 记录人名称 
        ///</summary>
         [SugarColumn(ColumnName="record_user"    )]
         public string RecordUser { get; set; }
        /// <summary>
        /// 昵称 
        ///</summary>
         [SugarColumn(ColumnName="record_nick"    )]
         public string RecordNick { get; set; }
        /// <summary>
        /// 状态 
        ///</summary>
         [SugarColumn(ColumnName="status"    )]
         public string Status { get; set; }
        /// <summary>
        /// 备注 
        ///</summary>
         [SugarColumn(ColumnName="remark"    )]
         public string Remark { get; set; }
        /// <summary>
        /// 预留字段1 
        ///</summary>
         [SugarColumn(ColumnName="attr1"    )]
         public string Attr1 { get; set; }
        /// <summary>
        /// 预留字段2 
        ///</summary>
         [SugarColumn(ColumnName="attr2"    )]
         public string Attr2 { get; set; }
        /// <summary>
        /// 预留字段3 
        ///</summary>
         [SugarColumn(ColumnName="attr3"    )]
         public string Attr3 { get; set; }
        /// <summary>
        /// 预留字段4 
        ///</summary>
         [SugarColumn(ColumnName="attr4"    )]
         public string Attr4 { get; set; }
        /// <summary>
        /// 租户号 
        ///</summary>
         [SugarColumn(ColumnName="TENANT_ID"    )]
         public string TenantId { get; set; }
        /// <summary>
        /// 乐观锁 
        ///</summary>
         [SugarColumn(ColumnName="REVISION"    )]
         public int? Revision { get; set; }
        /// <summary>
        /// 创建人 
        ///</summary>
         [SugarColumn(ColumnName="CREATED_BY"    )]
         public string CreatedBy { get; set; }
        /// <summary>
        /// 创建时间 
        ///</summary>
         [SugarColumn(ColumnName="CREATED_TIME"    )]
         public DateTime? CreatedTime { get; set; }
        /// <summary>
        /// 更新人 
        ///</summary>
         [SugarColumn(ColumnName="UPDATED_BY"    )]
         public string UpdatedBy { get; set; }
        /// <summary>
        /// 更新时间 
        ///</summary>
         [SugarColumn(ColumnName="UPDATED_TIME"    )]
         public DateTime? UpdatedTime { get; set; }
    }
}
